.coupon-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.coupon-content {
  padding: 0;
}

.coupon-list {
  padding: 12px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* 优惠券卡片样式 - 左右结构 */
.coupon-card {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff1e1e 100%);
  position: relative;
}

.coupon-card .adm-card-body {
  padding: 0;
}

.coupon-header {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.coupon-header .adm-button {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: #ff4d4f;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 12px;
  border-radius: 12px;
  height: 24px;
  min-width: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coupon-header .adm-button:hover {
  background-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.coupon-type {
  display: none; /* 隐藏类型标签，在右上角只显示状态 */
}

.coupon-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.coupon-content {
  display: flex;
  align-items: stretch;
  height: 100px;
  position: relative;
}



/* 左侧折扣区域 */
.coupon-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-right: 2px dashed rgba(255, 255, 255, 0.3);
  position: relative;
}

.coupon-discount::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #f5f5f5;
  border-radius: 50%;
  z-index: 1;
}

.coupon-discount::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #f5f5f5;
  border-radius: 50%;
  z-index: 1;
}

.discount-amount {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.discount-amount::before {
  content: '';
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 2px;
}

.coupon-card[data-type="红包"] .discount-amount::before {
  content: '红包';
}

.coupon-card[data-type="满减"] .discount-amount::before {
  content: '立减';
}

.coupon-card[data-type="VIP专享券"] .discount-amount::before {
  content: 'VIP';
}

/* 右侧详情区域 */
.coupon-details {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.coupon-desc {
  font-size: 16px;
  color: #fff;
  margin: 0 0 4px 0;
  font-weight: 600;
  line-height: 1.3;
}

.min-amount {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.coupon-category {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 2px 0;
}

.coupon-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.used-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin: 2px 0 0 0;
  font-weight: 500;
}

/* 状态标签样式 */
.adm-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 已使用和已过期的状态标签样式 */
.coupon-card[data-status="已使用"] .coupon-header .adm-tag,
.coupon-card[data-status="已过期"] .coupon-header .adm-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 自定义Tabs样式 */
.adm-tabs-header {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.adm-tabs-tab {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
}

.adm-tabs-tab-active {
  color: #ff4d4f;
  font-weight: 600;
}

.adm-tabs-content {
  background-color: #f5f5f5;
}

/* 过期和已使用的优惠券样式 */
.coupon-card[data-status="已使用"],
.coupon-card[data-status="已过期"] {
  background: linear-gradient(135deg, #bbb 0%, #999 100%);
  opacity: 0.7;
}

.coupon-card[data-status="已使用"] .coupon-discount,
.coupon-card[data-status="已过期"] .coupon-discount {
  background: rgba(255, 255, 255, 0.1);
}

.coupon-card[data-status="已使用"] .discount-amount,
.coupon-card[data-status="已过期"] .discount-amount,
.coupon-card[data-status="已使用"] .coupon-desc,
.coupon-card[data-status="已过期"] .coupon-desc {
  color: rgba(255, 255, 255, 0.6);
}

.coupon-card[data-status="已使用"] .coupon-details,
.coupon-card[data-status="已过期"] .coupon-details {
  color: rgba(255, 255, 255, 0.5);
}

.coupon-card[data-status="已使用"] .min-amount,
.coupon-card[data-status="已过期"] .min-amount {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

.coupon-card[data-status="已使用"] .coupon-category,
.coupon-card[data-status="已过期"] .coupon-category {
  color: rgba(255, 255, 255, 0.4);
}

.coupon-card[data-status="已使用"] .coupon-time,
.coupon-card[data-status="已过期"] .coupon-time {
  color: rgba(255, 255, 255, 0.3);
}

.coupon-card[data-status="已使用"] .used-time,
.coupon-card[data-status="已过期"] .used-time {
  color: rgba(255, 255, 255, 0.4);
}

.coupon-card[data-status="已使用"] .coupon-discount::before,
.coupon-card[data-status="已过期"] .coupon-discount::before,
.coupon-card[data-status="已使用"] .coupon-discount::after,
.coupon-card[data-status="已过期"] .coupon-discount::after {
  background: #f5f5f5;
}

.coupon-card[data-status="已使用"]:hover,
.coupon-card[data-status="已过期"]:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* 响应式优化 */
@media (max-width: 480px) {
  .coupon-discount {
    min-width: 80px;
  }
  
  .discount-amount {
    font-size: 18px;
  }
  
  .coupon-desc {
    font-size: 14px;
  }
  
  .coupon-details {
    padding: 8px 12px;
  }
  
  .coupon-header .adm-button {
    font-size: 10px;
    padding: 1px 8px;
    height: 20px;
    min-width: 40px;
  }
}

/* 优惠券动画效果 */
.coupon-card {
  transition: all 0.3s ease;
}

